package com.lengxf.design;

import java.util.List;

public abstract class AbstractObjectList {

    protected final List<Object> objects;

    public AbstractObjectList(List<Object> objects) {
        this.objects = objects;
    }

    public void addObject(Object obj) {
        this.objects.add(obj);
    }

    public void removeObject(Object obj) {
        this.objects.remove(obj);
    }

    public List<Object> getObjects() {
        return objects;
    }

    public abstract AbstractIterator createIterator();

}
